//
//  MyPingLunCell.m
//  ShopDemo
//
//  Created by Sunshine on 2018/8/7.
//  Copyright © 2018年 飞扬的青春. All rights reserved.
//

#import "MyPingLunCell.h"

@implementation MyPingLunCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIImageView *imagevi01 = [UIImageView new];
        self.titimagevi = imagevi01;
        imagevi01.layer.masksToBounds = YES;
        imagevi01.layer.cornerRadius = 30*kJLXWidthScale/2;
        [self.contentView addSubview:imagevi01];
        imagevi01.sd_layout
        .topSpaceToView(self.contentView, 8*kJLXWidthScale)
        .leftSpaceToView(self.contentView, 8*kJLXWidthScale)
        .heightIs(30*kJLXWidthScale)
        .widthIs(30*kJLXWidthScale);
        
        UIImageView *imagevi02 = [UIImageView new];
        self.seximagevi = imagevi02;
        [self.contentView addSubview:imagevi02];
        imagevi02.sd_layout
        .topSpaceToView(self.contentView, 8*kJLXWidthScale)
        .leftSpaceToView(imagevi01, 5*kJLXWidthScale)
        .heightIs(15*kJLXWidthScale)
        .widthIs(15*kJLXWidthScale);
        
        UILabel *lab01 = [UILabel new];
        self.namelab = lab01;
        lab01.font = [UIFont systemFontOfSize:16*kJLXWidthScale];
        [self.contentView addSubview:lab01];
        lab01.sd_layout
        .topSpaceToView(self.contentView, 8*kJLXWidthScale)
        .leftSpaceToView(imagevi02, 8*kJLXWidthScale)
        .rightSpaceToView(self.contentView, 10*kJLXWidthScale)
        .heightIs(20*kJLXWidthScale);
        
        UILabel *lab02 = [UILabel new];
        self.datelab = lab02;
        lab02.font = [UIFont systemFontOfSize:13*kJLXWidthScale];
        lab02.textColor = LineColor;
        [self.contentView addSubview:lab02];
        lab02.sd_layout
        .topSpaceToView(lab01, 0)
        .leftSpaceToView(imagevi02, 8*kJLXWidthScale)
        .rightSpaceToView(self.contentView, 10*kJLXWidthScale)
        .heightIs(10*kJLXWidthScale);
        
        UILabel *lab03 = [UILabel new];
        self.titlab = lab03;
        lab03.font = [UIFont systemFontOfSize:17*kJLXWidthScale];
        [self.contentView addSubview:lab03];
        lab03.sd_layout
        .topSpaceToView(imagevi01, 5*kJLXWidthScale)
        .leftSpaceToView(self.contentView, 8*kJLXWidthScale)
        .rightSpaceToView(self.contentView, 10*kJLXWidthScale)
        .heightIs(30*kJLXWidthScale);
        
        UILabel *lab04 = [UILabel new];
        self.contentlab = lab04;
        lab04.font = [UIFont systemFontOfSize:14*kJLXWidthScale];
        lab04.numberOfLines = 2;
        [self.contentView addSubview:lab04];
        lab04.sd_layout
        .topSpaceToView(lab03, 5*kJLXWidthScale)
        .leftSpaceToView(self.contentView, 8*kJLXWidthScale)
        .rightSpaceToView(self.contentView, 10*kJLXWidthScale)
        .heightIs(50*kJLXWidthScale);
        
        
        
    }
    return self;
}


@end
